From: Guillaume Desmottes Date: Wed, 23 Mar 2011 10:22:42 +0000 (+0100) Subject: telepathyClient.js: use ShellTpClient instead of TpSimpleObserver X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8299 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2028f33e3856e05c166919c286469d4ffd40cce8;p=gnome-shell.git telepathyClient.js: use ShellTpClient instead of TpSimpleObserver https://bugzilla.gnome.org/show_bug.cgi?id=645585 --- diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index 33f4e8707..5e3f33c97 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -80,14 +80,9 @@ Client.prototype = { // The second argument, recover, means _observeChannels will be run // for any existing channel as well. let dbus = Tp.DBusDaemon.dup(); - this._observer = Tp.SimpleObserver.new(dbus, true, 'GnomeShell', true, - Lang.bind(this, this._observeChannels)); - - // We only care about single-user text-based chats - let props = {}; - props[Tp.PROP_CHANNEL_CHANNEL_TYPE] = Tp.IFACE_CHANNEL_TYPE_TEXT; - props[Tp.PROP_CHANNEL_TARGET_HANDLE_TYPE] = Tp.HandleType.CONTACT; - this._observer.add_observer_filter(props); + this._observer = Shell.TpClient.new(dbus); + this._observer.set_observe_channels_func( + Lang.bind(this, this._observeChannels)); try { this._observer.register();